﻿@model QLNhaHangTiecCuoi.Models.NhanVien
@{
    ViewBag.Title = "Thêm mới nhân viên";
    Layout = "~/Views/Shared/_LayoutQLNhaHang.cshtml";
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        @Html.ValidationSummary(true)
        <div class="wrapper">
            <h1>Thêm mới nhân viên</h1>
        </div>
        <div>
            <table class="center">
                <tr>
                    <td>
                        <label for="code" id="label">Tên nhân viên:</label>
                    </td>
                    <td>
                        @Html.TextBoxFor(model => model.TenNV, new { @class = "textbox", maxlength = 50 })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.TenNV)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Địa chỉ:</label></td>
                    <td>
                        @Html.TextBoxFor(model => model.DiaChi, new { @class = "textbox", maxlength = 50 })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.DiaChi)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Email:</label></td>
                    <td>
                        @Html.TextBoxFor(model => model.Email, new { @class = "textbox", maxlength = 50 })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.Email)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Số điện thoại:</label></td>
                    <td>
                        @Html.TextBoxFor(model => model.SDT, new { @class = "textbox", maxlength = 12})<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.SDT)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Chức vụ:</label></td>
                    <td>
                        @Html.DropDownList("MaCV", new SelectList(ViewBag.Chonchucvu, "Value", "Text"), "----Chọn Chức vụ----", new { @class = "combobox" })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.MaCV)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Ghi chú:</label></td>
                    <td>
                        @Html.TextBoxFor(model => model.GhiChu, new { @class = "textbox" })
                        @Html.ValidationMessageFor(model => model.GhiChu)
                    </td>
                </tr>
            </table>
            <div class="wrapper"><input type="submit" value="Thêm" class="btn btn-large btn-success button" /></div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
